﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ObserverPattern
{
    public class Mobile : IObserverAccount
    {
        private long _phoneNumber;
        public Mobile(long phoneNumber)
        {
            this._phoneNumber = phoneNumber; 
        }

        public void Update(Subject subject)
        {
            Console.WriteLine("Notified: Phone number is {0}，you withdraw {1:C}", _phoneNumber, subject.Money);
        }
    }
}
